package com.lsu.app.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author hjj
 * @date 2023/11/18 14:30
 */
@Data
@ApiModel(value="CourseWithTalk对象", description="课程话题类")
public class CourseWithTalk {
    @ApiModelProperty("课程下的话题")
    private List<Talk> talks;
    @ApiModelProperty("该课程")
    private Course course;
    @ApiModelProperty("参与次数")
    private Integer joinNum;

    public CourseWithTalk(List<Talk> talks, Course course, Integer joinNum) {
        this.talks = talks;
        this.course = course;
        this.joinNum = joinNum;
    }
}
